// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for paramPoly3 parameter range.
 */
enum class FWorldPPolyParameterRange
{
	Normalized,
	ArcLength
};

inline FWorldPPolyParameterRange FWorldPPolyParameterRangeFromJson(const json& j)
{
	if (j == "normalized")	return FWorldPPolyParameterRange::Normalized;
	if (j == "arcLength")	return FWorldPPolyParameterRange::ArcLength;
	return FWorldPPolyParameterRange::Normalized;
}

inline json FWorldPPolyParameterRangeToJson(FWorldPPolyParameterRange p)
{
	if (p == FWorldPPolyParameterRange::Normalized)	return "normalized";
	if (p == FWorldPPolyParameterRange::ArcLength)	return "arcLength";
	return "normalized";
}

inline void from_json(const json& j, FWorldPPolyParameterRange& p)
{
	p = FWorldPPolyParameterRangeFromJson(j);
}

inline void to_json(json& j, const FWorldPPolyParameterRange& p)
{
	j = FWorldPPolyParameterRangeToJson(p);
}
